package com.xuhai.blog19.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xuhai.blog19.admin.entity.ArticleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author PangJunjie
 * @Date 2023/2/8/008
 */
@Mapper
public interface ArticleDao extends BaseMapper<ArticleEntity> {
    IPage<ArticleEntity> getArticlePageByCategoryId(@Param("page") IPage<ArticleEntity> page, @Param("categoryId") Integer categoryId);

    int updateReadCount(Integer articleId);
}
